import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/User'
import index from './modules/Index'
import shop from './modules/Shop'
import good from './modules/Good'
import cart from './modules/Cart'
import collect from './modules/Collect'
import trace from './modules/Trace'
import order from './modules/Order'
import message from './modules/Message'
import getters from './getters'

Vue.use(Vuex)

const store = new Vuex.Store({
    modules: {
        user,
        index,
        shop,
        good,
        cart,
        collect,
        trace,
        order,
        message
    },
    getters
})

export default store